/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pojo;

import java.io.Serializable;
import java.util.List;
public class AccountRole implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer accountRoleId;
    private String accountRoleName;
    private List<Account> accountList;

    public AccountRole() {
    }

    public AccountRole(Integer accountRoleId) {
        this.accountRoleId = accountRoleId;
    }

    public Integer getAccountRoleId() {
        return accountRoleId;
    }

    public void setAccountRoleId(Integer accountRoleId) {
        this.accountRoleId = accountRoleId;
    }

    public String getAccountRoleName() {
        return accountRoleName;
    }

    public void setAccountRoleName(String accountRoleName) {
        this.accountRoleName = accountRoleName;
    }

    public List<Account> getAccountList() {
        return accountList;
    }

    public void setAccountList(List<Account> accountList) {
        this.accountList = accountList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (accountRoleId != null ? accountRoleId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AccountRole)) {
            return false;
        }
        AccountRole other = (AccountRole) object;
        if ((this.accountRoleId == null && other.accountRoleId != null) || (this.accountRoleId != null && !this.accountRoleId.equals(other.accountRoleId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "data.AccountRole[accountRoleId=" + accountRoleId + "]";
    }

}
